package com.yida.gwj.config.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @Author: PPV
 * @Date: 2023-03-07
 */
@ApiModel("利率计算器 请求")
public class GwjConfBankRateRequest implements Serializable {

    private static final long serialVersionUID = 9091456069627836251L;
    @NotNull(message = "初始存款金额不能为空")
    @ApiModelProperty("初始存款金额")
    private BigDecimal initSaveMoney;

    @NotNull(message = "存储时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("存储时间")
    private LocalDate startTime;

    @NotNull(message = "结息时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("结息时间")
    private LocalDate endTime;

    @NotNull(message = "利率不能为空")
    @ApiModelProperty("利率")
    private BigDecimal rate;

    public BigDecimal getInitSaveMoney() {
        return initSaveMoney;
    }

    public void setInitSaveMoney(BigDecimal initSaveMoney) {
        this.initSaveMoney = initSaveMoney;
    }

    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }

    public LocalDate getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDate endTime) {
        this.endTime = endTime;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }
}
